package com.aneliya.io.serializable;

import java.io.InputStream;
import java.io.OutputStream;

import com.aneliya.io.IStreamStrategyFactory;
import com.aneliya.io.IStreamStrategy;

public class SerializableStreamStrategyFactory implements IStreamStrategyFactory {

	public IStreamStrategy createStrategy(InputStream inputStream, OutputStream outputStream) {
		SerializableStreamStrategy strategy = new SerializableStreamStrategy();
		strategy.setInputStream(inputStream);
		strategy.setOutputStream(outputStream);
		
		strategy.initialize();
		return strategy;
	}

}
